﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.DesignPattern;
using System.Data;

namespace Pixysoft.Framework.Noebe.MemoryCaches
{
    public interface ICacheNoebeManager : INoebeManager
    {
        /// <summary>
        /// 获取设置对象
        /// </summary>
        ICacheSetting Setting { get;}


        /// <summary>
        /// 获取所有缓存
        /// </summary>
        /// <param name="tableName"></param>
        /// <returns></returns>
        DataTable Select(string tableName);


        /// <summary>
        /// 清空所有缓存
        /// </summary>
        /// <param name="tableName"></param>
        void Clear(string tableName);


        /// <summary>
        /// 清空全部
        /// </summary>
        void ClearAll();


    }
}
